package com.zkjl.protect_business.entity;

import com.zkjl.protect_business.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

/**
 * 业务培训
 **/
@Data
@ApiModel(value = "BusinessTraining对象", description = "业务培训")
@Document(indexName = "pb_business_yewupeixun_yewupeixun", shards = 1, replicas = 0)
public class BusinessTraining extends BaseEntity {

    @Id
    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "培训名称")
    @Field(type = FieldType.Keyword)
    private String name;

    @ApiModelProperty(value = "内容类型")
    @Field(type = FieldType.Keyword)
    private String type;

    @ApiModelProperty(value = "培训描述")
    @Field(type = FieldType.Keyword)
    private String describe;

    @ApiModelProperty(value = "附件ids")
    @Field(name = "attachment_ids", type = FieldType.Keyword)
    private List<String> attachmentIds;

}
